package com.gec.service;

import java.util.List;

import com.gec.pojo.Article;


public interface ArticleService {

	public List<Article> getArticleByPage(String typecode, String keyword, int currentPage, int pageSize);

	public int getArticleCount(String typecode, String keyword);

	public Article getArticleById(int id);

	public List<Article> getArticles();

	public List<Article> getArticleByType(String string);

	public void postArticle(String title, String text, String name, String typecode);

	public void deleteArticle(int aid);

	public Article getNewestArticle();

	public void updateArticle(int aid, String title, String text);

	public List<Article> getArticleByName(String name);


}
